<?php
	header('Content-type: text/html; charset=UTF-8');

	include_once dirname(dirname(__FILE__)) . '/lib/emoji/emoji.php';

  
if(!empty($_POST)){
        $str=$_POST['c'];
        $str2=explode("}",$str);
        $str3=array_filter($str2);
        for($i=0;$i<count($str3);$i++){
         $str4[]=emoji_html_to_unified($str3[$i]);

        }
       
        
        $data=json_encode($str4,JSON_UNESCAPED_UNICODE);
       
         echo $data;
    

      }


?>